/*
 * Copyright (C) 2009 Dimitrios C. Michalakos
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */
package com.restsql.db.sql;

import com.sun.net.httpserver.HttpExchange;
import java.sql.SQLException;
import java.util.List;
import java.util.Map;
//import javax.mail.internet.MimeMultipart;

/**
 * SQLDesigner is an interface for creating classes that can be used for designing SQL commands.
 * @author dimitris@jmike.gr
 * @author  Jiannan.Lu
 */
public interface SQLDesigner {

    public void parseForGet(HttpExchange httpExchange)throws Exception;

    public void parseForPost(HttpExchange httpExchange)throws Exception;

    public void parseForPut(HttpExchange httpExchange)throws Exception;

    public void parseForDelete(HttpExchange httpExchange)throws Exception;
//    public Boolean isEntryType();
//
//    public Boolean isFeedType();
//    public void parse(String collection, Map<String, List<String>> parameters) throws SQLException, InvalidCollectionException;

//    public void parse(String collection, MimeMultipart mimeMultipart) throws SQLException, InvalidCollectionException;

    public String getSelectSQL() throws SQLException, InvalidInputDataException;

    public String getInsertSQL() throws SQLException, InvalidInputDataException;

    public String getDeleteSQL() throws SQLException, InvalidInputDataException;

    public String getUpdateSQL() throws SQLException, InvalidInputDataException;
}
